package com.dyh.quickdemo.depRm3;

/*
@Author=Joey Wheeler
@Date=2021/3/26 16:08
*/
public class AbstractSdkClient implements SdkClient {
    @Override
    public <T extends SdkResponse> T execute(SdkRequest<T> request) throws SdkException {
        if (request instanceof HelloRequest){
            HelloResponse helloResponse = new HelloResponse();
            helloResponse.setData("helloResponse");
            return (T) helloResponse;
        }
        return (T)new SdkResponse();
    }
}
